package com.zhang.hadoop.flink.test5;

import java.time.Instant;

/**
 * @author: zhang yufei
 * @createTime:2022/7/3 12:27
 * @description:
 */
public class UrlViewCount {

    public String url;

    public Long count;

    public Long windowStart;

    public Long windowEnd;

    public UrlViewCount() {

    }

    public UrlViewCount(String url, Long count, Long windowStart, Long windowEnd) {
        this.url = url;
        this.count = count;
        this.windowStart = windowStart;
        this.windowEnd = windowEnd;
    }

    @Override
    public String toString() {
        return "UrlViewCount{" +
                "url='" + url + '\'' +
                ", count=" + count +
                ", windowStart=" + Instant.ofEpochMilli(windowStart) +
                ", windowEnd=" + Instant.ofEpochMilli(windowEnd) +
                '}';
    }
}
